package com.yf1706.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.yf1706.comm.RowMapper;

public class goodsRowMapper implements RowMapper<goodsbean>{

	@Override
	public goodsbean mapper(ResultSet rs) throws SQLException {
		goodsbean goods=new goodsbean();
	    goods.setGid(rs.getInt("gid"));
	    goods.setGname(rs.getString("gname"));
	    goods.setGtype(rs.getString("gtype"));
	    goods.setGimg(rs.getString("gimg"));
	    goods.setGstatus(rs.getString("gstatus"));
	    goods.setGprice(rs.getString("gprice"));
	    goods.setGcolor(rs.getString("gcolor"));
		return goods;
	}

}
